package com.warm.orm.eq.job.mapper.impl;

import com.easy.query.api4j.client.EasyQuery;
import com.easy.query.solon.annotation.Db;
import com.warm.orm.domain.job.SysJobLog;
import com.warm.orm.eq.job.mapper.SysJobLogMapper;
import org.noear.solon.annotation.Component;

import java.util.List;

@Component
public class SysJobLogMapperImpl implements SysJobLogMapper {

    @Db
    private EasyQuery easyQuery;

    /**
     * 获取quartz调度器日志的计划任务
     *
     * @param jobLog 调度日志信息
     * @return 调度任务日志集合
     */
    @Override
    public List<SysJobLog> selectJobLogList(SysJobLog jobLog) {
        return this.easyQuery.queryable(SysJobLog.class).toList();
    }

    /**
     * 查询所有调度任务日志
     *
     * @return 调度任务日志列表
     */
    @Override
    public List<SysJobLog> selectJobLogAll() {
        return null;
    }

    /**
     * 通过调度任务日志ID查询调度信息
     *
     * @param jobLogId 调度任务日志ID
     * @return 调度任务日志对象信息
     */
    @Override
    public SysJobLog selectJobLogById(Long jobLogId) {
        return null;
    }

    /**
     * 新增任务日志
     *
     * @param jobLog 调度日志信息
     * @return 结果
     */
    @Override
    public int insertJobLog(SysJobLog jobLog) {
        return 0;
    }

    /**
     * 批量删除调度日志信息
     *
     * @param logIds 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteJobLogByIds(Long[] logIds) {
        return 0;
    }

    /**
     * 删除任务日志
     *
     * @param jobId 调度日志ID
     * @return 结果
     */
    @Override
    public int deleteJobLogById(Long jobId) {
        return 0;
    }

    /**
     * 清空任务日志
     */
    @Override
    public void cleanJobLog() {

    }
}
